home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
basic
/
qbnws102.zip
/
QEXEC.ZIP
/
ASK.BAS
next >
Wrap
BASIC Source File
|
1990-02-02
|
264b
|
12 lines
DEFINT A-Z
'$INCLUDE: 'PDQDECL.BAS'
PRINT "Enter a number (0-9): ";
DO 'wait until a number key is pressed
Ask = BIOSInkey
LOOP WHILE Ask < 48 OR Ask > 57
PRINT
EndLevel (Ask - 48) 'adjust ASCII to a valid number and exit